<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>图书馆座位预约系统</title>
    <script type="text/javascript" src="{{ basepath }}static/js/jquery.js"></script>
    <!--plugin-->
    <style type="text/css">
        body {
            width:100%;
            height:100%;
            background-image:url("../library/static/img/index_img.jpg");
            background-repeat:no-repeat;
            background-size:100%;
            z-index:0;
        }
        .header {
            font-family:"楷体";
            text-align:center;
            font-size:70px;
            color:#666167;
            font-weight:900;
        }
        .content{
            width:81%;
            min-width: 1000px;
            margin:0 auto;

        }
        .content table{
            width:100%;
            background-color: #fff;
            border-color:#eee;
        }
        .content table th,
        .content table td{
            font-size: 20px;
        }
        .content p {
            text-align:center;
            font-size:30px;
            color:#5e5e5e;
        }


    </style>
</head>
<body>
<!-------------------------------------- 头部开始 -------------------------------------->
<p style="padding: 15px;line-height: 30px;font-size: 20px;font-weight: 600;">
    <a  href="{{ basepath }}/library/index"><span class="span1">返回</span></a></p>
<!-------------------------------------- 头部结束 -------------------------------------->
<!-------------------------------------- 内容开始 -------------------------------------->
<main>
    <div class="header">
        <p>图书馆座位预约系统</p>
    </div>
    <div class="content">
        <table border="1" cellspacing="0" cellpadding="10">
            <thead>
                <tr>
                    <th>姓名</th>
                    <th>总时长</th>
                </tr>
            </thead>
            <tbody>
                {%for phb_list in phb_list%}
                    <tr>
                        <td>{{phb_list.name}}</td>
                        <td>{{phb_list.xc_time}}</td>
                    </tr>
                {%endfor%}

            </tbody>
        </table>
    </div>
</main>
<!-------------------------------------- 内容结束 -------------------------------------->
<!-------------------------------------- 尾部开始 -------------------------------------->
<footer>
    <div class="container">

    </div>
</footer>
<!-------------------------------------- 尾部开始 -------------------------------------->
</body>
</html>
<style>

</style>
<script>
    $(function () {

    });
    $(function () {
        $(".item").click(function () {
            var model_id = $(this).attr("model_id");
            if (model_id == 0) {
                window.location.href = $(this).attr("link");
            } else {
                window.location.href = '{{basepath}}libooking?target_page=news&model_id=' + model_id;
            }
        });

        var myTouch = util.toucher(document.getElementById('carousel-example-generic'));

        myTouch.on('swipeLeft', function (e) {
            $('#carright').click();
        }).on('swipeRight', function (e) {
            $('#carleft').click();
        });
    });
</script>

